package com.payment.system.mapper;

import com.payment.common.annotation.DataSource;
import com.payment.common.enums.DataSourceType;
import com.payment.system.domain.ShoppingOrderShipment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单配送 数据层
 * 
 * @author payment
 * @date 2019-02-15
 */
public interface ShoppingOrderShipmentMapper 
{
	/**
     * 查询订单配送信息
     * 
     * @param id 订单配送ID
     * @return 订单配送信息
     */
	@DataSource(DataSourceType.SLAVE)
	public ShoppingOrderShipment selectShoppingOrderShipmentById(String id);
	
	/**
     * 查询订单配送列表
     * 
     * @param shoppingOrderShipment 订单配送信息
     * @return 订单配送集合
     */
	@DataSource(DataSourceType.SLAVE)
	public List<ShoppingOrderShipment> selectShoppingOrderShipmentList(ShoppingOrderShipment shoppingOrderShipment);
	
	/**
     * 新增订单配送
     * 
     * @param shoppingOrderShipment 订单配送信息
     * @return 结果
     */
	public int insertShoppingOrderShipment(ShoppingOrderShipment shoppingOrderShipment);


	/**
	 * 修改订单配送
	 *
	 * @param shoppingOrderShipment 订单配送信息
	 * @return 结果
	 */
	public int updateShoppingOrderShipment(ShoppingOrderShipment shoppingOrderShipment);

	//根据订单id查询
	@DataSource(DataSourceType.SLAVE)
    ShoppingOrderShipment selectShoppingOrderShipmentByOrderId(@Param("orderId") String orderId);
}